package sust.cse.ruhul.jobs1;

import java.util.ArrayList;
import java.util.Arrays;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

import sust.cse.ruhul.service.JobList;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class Page2 extends Activity
{
	/*String[]						values	= new String[] {
			"6TH DEC 11AM - AZTECH PTE LTD", "6TH DEC 5PM - LNP PTE LTD",
			"7TH DEC 10AM - PAVITRA", "7TH DEC 11AM - SNP PTE LTD" };*/
	
	String[] values;
	private ListView				list	= null;


	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.page2);
		
		list = (ListView) findViewById(R.id.list);
		
		JobList jlist = new JobList(this,list);
		jlist.execute(new String[]{"http://108.163.232.50:1100/LeewayWebService.asmx?op=GetAllJobs"});

	}
}
